/* ------- 工具原子类 -------*/
.f-mt20{margin-top: 20px!important;}
.f-mt40{margin-top: 40px!important;}
.f-pl10{padding-left: 10px!important;}
.f-pr10{padding-right: 10px!important;}
.f-mt3v{margin-top: 3vh!important;}
.f-mt2v{margin-top: 2vh!important;}


/* ------- 字体 -------*/
@font-face {
  font-family: 'customer';
  src: url('../../static/weishidataview/fonts/DigifaceRegular.ttf');
  src: url('../../static/weishidataview/fonts/DigifaceRegular.woff') format('woff')
}

// 特殊字体类名
.digi{
  font-family: 'customer';
  font-size: 5.6vh;
}

/* ------- 覆盖 Element-UI的样式 -------*/
// 教学监控表格
.el-table.tw-customer-table{
  background-color: transparent;
  .el-table__body tr:hover>td{
    background: rgba(0, 93, 255, 0.1);
  }
  &:before{
    content: none
  }
  .tw-customer-table-header{
    background-color: transparent;
    >th{
      border: none;
      font-size: 22px;
      font-weight: normal;
      background-color: rgba(0, 93, 255, 0.2);
      color: #94aad4;
      padding: 0;
      @media screen and (max-width: 1600px){
        font-size: 18px;
      }
      @media screen and (max-width: 1600px){
        font-size: 16px;
      }
      .cell{
        padding-top: 0;
        padding-bottom: 0;
        line-height: 70px;
        @media screen and (max-width: 1600px){
          line-height: 45px;
        }
        @media screen and (max-width: 1366px){
          line-height: 36px;
        }
      }
    }
  }
  .tw-customer-table-row{
    background-color: transparent;
    >td{
      color: #d9e7ff;
      border: none;
      font-size: 22px;
      padding: 0;
      @media screen and (max-width: 1600px){
        font-size: 18px;
      }
      @media screen and (max-width: 1600px){
        font-size: 16px;
      }
      .cell{
        line-height: 60px;
        @media screen and (max-width: 1600px){
          line-height: 55px;
        }
        @media screen and (max-width: 1366px){
          line-height: 45px;
        }
        p{
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          max-width: 100%;
        }

      }
      .yellow{
        display: inline-block;
        min-width: 3.5em;
        color: #ffdd89;
      }
    }
  }
}



// 修正表格
.el-table.tw-table{
  background: transparent;
  padding: 10px 20px;
  tr,
  th{
    background-color: rgba(0, 93, 255, 0.2);
  }
}

// 居中显示的头像
.tw-center-header{
  text-align: center;
  line-height: 29vh;
  img{
    max-width: 100%;
  }
}

/*五栏布局*/
.tw-ul{
  font-size: 0;
  height: 18.5vh;
  li{
    width: 20%;
    display: inline-block;
    font-size: 20px;
  }
}
.tw-server-info{
  //padding: 5vh 0;
  text-align: center;
  font-size: 0;
  line-height: 18.5vh;
  @media screen and (max-width: 1600px){
    //padding: 4vh 0;
  }
  &__left,
  &__right{
    display: inline-block;
  }
  &__left{
    vertical-align: top;
    @media screen and (max-width: 1024px){
      max-width: 75px;
    }
    img{
      @media screen and (max-width: 1440px){
        width: 80%;
      }
      @media screen and (max-width: 1366px){
        width: 75%;
      }
      @media screen and (max-width: 1024px){
        width: 100%
      }
    }
  }
  &__right{
    padding-left: 20px;
    padding-top: 4vh;
    @media screen and (max-width: 1440px){
      padding-left: 0;
    }
    @media screen and (max-width: 1024px){
      padding-left: 10px;
    }
  }
  p{
    font-size: 28px;
    margin: 0;
    line-height: 30px;
    text-align: left;
    @media screen and (max-width: 1440px){
      font-size: 25px;
    }
    @media screen and (max-width: 1366px){
      font-size: 20px;
    }
    @media screen and (max-width: 1024px){
      font-size: 18px;
      line-height: 26px;
    }
    &.digi{
      text-align: left;
      margin-top: 15px;
      font-size: 60px;
      line-height: 50px;
      color: #00fffc;
      @media screen and (max-width: 1440px){
        font-size: 50px;
        margin-top: 0;
      }
      @media screen and (max-width: 1366px){
        font-size: 34px;
        margin-top: 0;
      }
      @media screen and (max-width: 1024px){
        font-size: 32px;
        line-height: 38px;
      }
      .unit{
        font-size: 30px;
        @media screen and (max-width: 1366px){
          font-size: 28px;
        }
        @media screen and (max-width: 1024px){
          font-size: 16px;
        }
      }
    }
  }
}

.tw-status{
  font-size: 0;
  padding: 20px 0;
  // @media screen and (max-width: 1600px){
  //   padding: 2vh 0 2vh 20px;
  // }
  // @media screen and (max-width: 1366px){
  //   height: 21vh;
  // }
  // @media screen and (max-width: 1024px){
  //   height: 18vh;
  // }
  .warning{
    @media screen and (max-width: 1024px){
      width: 25px;
      vertical-align: unset;
    }
  }
  li{
    width: 11%;
    position: relative;
    font-size: 20px;
    display: inline-block;
    text-align: center;
    >img{
      @media screen and (max-width: 1366px){
        width: 70%
      }
      @media screen and (max-width: 1024px){
        width: 88%
      }
    }
  }
  &__info{
    position: absolute;
    top: 0;
    width: 100%;
    padding: 15px;
    text-align: center;

    &-img{
      img{
        @media screen and (max-width: 1600px){
          width: 30%;
        }
        @media screen and (max-width: 1366px){
          width: 25%;
        }
      }
    }

    p{
      font-size: 36px;
      line-height: 44px;
      margin: 0;
      @media screen and (max-width: 1366px){
        font-size: 22px;
        line-height: 26px;
      }
      @media screen and (max-width: 1024px){
        font-size: 18px;
        line-height: 20px;
      }
      &.port{
        font-size: 24px;
        @media screen and (max-width: 1366px){
          font-size: 16px;
          line-height: 34px;
        }
        @media screen and (max-width: 1024px){
          font-size: 14px;
          line-height: 32px;
        }
      }
    }
  }
}

/*hero 巨幕*/
.tw-hero{
  font-size: 0;
  text-align: center;
  height: 6vh;
  &.tw-hero--multi{
    >li{
      min-width: 13.5%;
      @media screen and (max-width: 1024px){
        min-width: 15.5%;
      }
    }
  }
  >li{
    font-size: 30px;
    display: inline-block;
    color: #00a7fe;
    min-width: 20%;
    line-height: 40px;
    @media screen and (max-width: 1024px){
      font-size: 22px;
    }
  }
  &__label{
    @media screen and (max-width: 1366px){
        font-size: 26px;
        vertical-align: bottom;
    }

  }
  &__value{
    font-family: customer;
    font-size: 35px;
    line-height: 40px;
    color: #07ffff;
    vertical-align: text-bottom;
    @media screen and (max-width: 1366px){
      font-size: 28px;
      vertical-align: bottom;
    }
    @media screen and (max-width: 1024px){
      font-size: 28px;
      vertical-align: bottom;
    }
  }
}

/*信息盒子*/
.tw-info-box{
  text-align: center;
  padding: 3vh 30px;
  color: #07ffff;
  @media screen and (max-width: 1366px){
    padding: 3vh 15px;
  }
  &__layout{
    background-color: rgba(0, 94, 255, 0.2);
    padding: 20px 0 20px 10px;
    @media screen and (max-width: 1600px) {
      padding: 20px 0 20px 10px;
    }
  }
  &__label{
    text-align: left;
    font-size: 20px;
    margin: 0;
    line-height: 25px;
    @media screen and (max-width: 1600px) {
      font-size: 16px;
    }
    @media screen and (max-width: 1366px) {
      font-size: 16px;
      line-height: 20px;
    }
    @media screen and (max-width: 1024px) {
      font-size: 18px;
    }
  }
  &__value{
    text-align: left;
    font-size: 28px;
    margin: 12px 0 0 0;
    line-height: 30px;
    @media screen and (max-width: 1600px) {
      font-size: 22px;
      line-height: 16px;
    }
    @media screen and (max-width: 1366px) {
      font-size: 18px;
      margin-top: 8px;
    }
    @media screen and (max-width: 1024px) {
      font-size: 20px;
    }
  }
}

/*错误页面*/
.tw-error{
  height: 960px;
  position: relative;
  &__layout{
    height: 60vh;
    width: 70%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
  }
  h4{
    margin-top: 20px;
    color: #00fffc;
    font-size: 24px;
    line-height: 50px;
  }
  img{
    @media screen and (max-width: 1366px) {
      width: 50%;
    }
    @media screen and (max-width: 1024px) {
      width: 70%;
    }
  }
}


.tw-center-box{
  padding: 0 90px;
}
/*大的消息栏*/
.tw-info-huge{
  font-size: 59px;
  text-align: center;
  .info-border-left,
  .info-border-right,
  p{
    display: inline-block;
  }
  p{
    position: relative;
    width: 6em;
    color: #00a5fe;
  }
  p[data-text]::after {
    content: attr(data-text);
    color: #07ffff;
    position: absolute;
    left: 0;
    z-index: 2;
    -webkit-mask-image: -webkit-gradient(linear, 0 0, right 0, from(#07ffff), to(rgba(0,0,255,0)));
  }
  .info-border-left,
  .info-border-right{
    width: 37%;
    margin-bottom: 16px;
    border-bottom: 4px solid #298eff;
  }
}

/*基本信息栏*/
.tw-basic-info{
  font-size: 0;
  li{
    position: relative;
    display: inline-block;
    font-size: 40px;
    max-width: 23%;
    &:not(:first-child){
      margin-left: 40px;
    }
    img{
      max-width: 100%;
    }
  }
}

/*首页小的信息栏*/
.tw-user-info-list{
  height: 12vh;
  font-size: 0;
  padding: 2vh 5%;
  &__item{
    font-size: 20px;
    display: inline-block;
    width: 25%;
    &:hover{
      cursor: pointer;
    }
    &.teacher{
       .name,
       .digi{
         color: #ffdc85
       }
     }
    &.student{
      .name,
      .digi{
        color: #66c2ff
      }
    }
    &.parents{
      .name,
      .digi{
        color: #1ed6d6
      }
    }
    &.others{
      .name,
      .digi{
        color: #a97aff
      }
    }
    &__left,
    &__right{
      display: inline-block;
    }
    &__left{
      vertical-align: text-bottom;
      img {
        width: 60px;
        height: 60px;
      }
    }
    &__right{
      .name{
        font-size: 18px;
        @media screen and (max-width:1366px) {
          font-size: 16px;
          margin: 0;
        }
      }
      .digi{
        font-size: 24px;
        margin: 0;
        line-height: 24px;
        @media screen and (max-width:1366px) {
          font-size: 20px;
          line-height: 20px;
        }
      }
    }
  }
}

.tw-small-user-header{
  font-size: 0;
  line-height: 8vh;
  height: 8vh;
  >li{
    font-size: 28px;
    @media screen and (max-width: 1366px){
      font-size: 24px;
    }
    display: inline-block;
    &.teacher-item{

      color: #ffdc85;
    }
    &.student-item{
      color: #66c2ff;
    }
    &.parent-item{
      color: #1ed6d6;
    }
    &.other-item{
      color: #a97aff;
    }
    .digi{
      font-size: 30px;
      @media screen and (max-width: 1366px){
        font-size: 26px;
      }
    }
  }
  img{
    width: 60px;
    height: 60px;
    @media screen and (max-width: 1366px){
      width: 50px;
      height: 50px;
    }
  }

}

/*tw-production*/
.tw-production{
  text-align: center;
  padding: 3.7vh 0 0 32px;
  &__title{
    height: 52px;
    background-color: rgba(0, 93, 255, 0.15);;
    color: #07ffff;
    font-size: 26px;
    line-height: 52px;
    border: 1px solid #2265da;
    @media screen and (max-width: 1600px){
      font-size: 20px;
    }
    @media screen and (max-width: 1366px){
      font-size: 18px;
    }
    @media screen and (max-width: 1024px){
      font-size: 22px;
      line-height: 50px;
    }
  }
  &__list{
    >li{
      padding: 0 0.5em;
      text-align: right;
      font-size: 22px;
      color: #bad3ff;
      line-height: 4vh;
      @media screen and (max-width: 1600px){
        font-size: 18px;
      }
      @media screen and (max-width: 1440px){
        font-size: 16px;
      }
      @media screen and (max-width: 1366px){
        font-size: 14px;
      }
      @media screen and (max-width: 1024px){
        font-size: 18px;
        padding: 0 2.5em;
      }
      .value{
        display: inline-block;
        width: 2.5em;
      }
    }
  }
}

.tw-new-title{
  text-align: center;
  font-size: 24px;
  color: #fff;
  .digi{
    font-size: 32px;
    vertical-align: baseline;
  }
  // 带发光效果
  // -webkit-animation: Glow 2.5s ease infinite alternate;
  // animation: Glow 2.5s ease infinite alternate;

  // 不带发光效果
  // -webkit-animation: Glow 0 ease infinite alternate;
  // animation: Glow 0 ease infinite alternate;
  // @media screen and (min-width:3656px) and (max-width:4096px) {
  //   -webkit-animation: Glow4k 2.5s ease infinite alternate;
  //   animation: Glow4k 2.5s ease infinite alternate;
  // }
}
